package com.example.login.api

import com.example.common.api.BaseApiService
import com.example.common.entity.BaseResponse
import com.example.common.entity.UserEntity
import retrofit2.http.POST
import retrofit2.http.Query

interface AccountServerApi: BaseApiService {

    @POST("/user/login")
    suspend fun userLogin(@Query("username") userName: String, @Query("password") password: String): BaseResponse<UserEntity>

    @POST("/user/register")
    suspend fun userRegister(@Query("username") userName: String, @Query("password") password: String): BaseResponse<UserEntity>

}